Add MODEL START and MODEL STOP fusion commands#101
Merged
Conversation
258da89 to
0637237
Compare
Collaborator
|
@mohit-singlestore You'll need to run the pre-commit checks as described in https://github.com/singlestore-labs/singlestoredb-python/blob/main/CONTRIBUTING.md for the checks to pass. |
kesmit13
reviewed
Oct 22, 2025
| if self._manager is None: | ||
| raise ManagementError(msg='Manager not initialized') | ||
| res = self._manager._post(f'inferenceapis/{self.project_id}/{model_name}/start') | ||
| return res.json() |
Collaborator
There was a problem hiding this comment.
I'm curious as to what sort of information is returned here. Should it be some sort of ModelStatus object returned instead of a raw decoded json object? If there is something relevant returned, it might be a good idea to create a result object in the Fusion SQL START / STOP commands that returns that information as well.
Contributor
Author
There was a problem hiding this comment.
The response includes modelName, modelID, hostingPlatform, and status. I've updated it to return a proper result object instead of raw JSON. Please take a look.
06c0a7c to
eb31853
Compare
kesmit13
approved these changes
Oct 31, 2025
ricardoasmarques
approved these changes
Nov 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds 2 new fusion commands for models